package org.example.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.order.entity.User;

import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User>{

    void updateLoginInfo(@Param("userId")Long id, @Param("loginTime") LocalDateTime now,@Param("loginIp") String ip);

    int restoreUserBatch(List<Long> userIds);

    int restoreUser(Long userId);
}

